package cn.northsea.model.buy;
import cn.northsea.model.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@ApiModel(description = "Buy")
@TableName("buy")
public class Buy extends BaseEntity{


    @ApiModelProperty(value = "订购时间")
    @TableField("buy_time")
    private Date buyTime;

    @ApiModelProperty(value = "价格")
    @TableField("price")
    private BigDecimal price;

    @ApiModelProperty(value = "订购数量")
    @TableField("number")
    private Integer number;

    @ApiModelProperty(value = "订购状态")
    @TableField("state")
    private Integer state;

    @ApiModelProperty(value = "原料号")
    @TableField("material_id")
    private Long materialId;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "供应商")
    @TableField("supplier_id")
    private Long supplierId;

    @ApiModelProperty(value = "物流id")
    @TableField("logistics_id")
    private Long logisticsId;
}
